home *** CD-ROM | disk | FTP | other *** search
- REPEAT(3I) Last changed: 2-5-98
-
-
- NNAAMMEE
- RREEPPEEAATT - Concatenates several copies of a string
-
- SSYYNNOOPPSSIISS
- RREEPPEEAATT (([SSTTRRIINNGG==]_s_t_r_i_n_g,, [NNCCOOPPIIEESS==]_n_c_o_p_i_e_s))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- Fortran 90
-
- DDEESSCCRRIIPPTTIIOONN
- The RREEPPEEAATT intrinsic function concatenates several copies of a string.
- It returns the specified number of concatenated copies of the input
- string as the result. If the number of copies is zero, the result is
- a string of zero length.
-
- RREEPPEEAATT accepts the following arguments:
-
- _s_t_r_i_n_g Must be a scalar and of type character.
-
- _n_c_o_p_i_e_s Must be either 0 or a positive integer. Must also be a
- scalar.
-
- RREEPPEEAATT is a transformational function. The name of this intrinsic
- cannot be passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result is a scalar entity of type character with a length of
- _n_c_o_p_i_e_s times the length of _s_t_r_i_n_g. The value of the result is the
- concatenation of _n_c_o_p_i_e_s of _s_t_r_i_n_g.
-
- If _n_c_o_p_i_e_s is zero, the result is a string of zero length.
-
- EEXXAAMMPPLLEESS
- In the following program, a literal with a trailing blank is repeated.
-
- CHARACTER*14 CHVAR
- CHVAR = REPEAT('STRING ',2)
- PRINT '(3A)', '>', CHVAR, '<'
- END
-
- The output of the program is:
-
- >STRING STRING <
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-